package com.ybkj.o2o.zhuanche.entity;

import com.ybkj.o2o.zhuanche.common.json.DateTimeJsonSerializer;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 梯度收费详细.
 * @author Shine
 */
public class ChargeStartDistance implements Serializable {

  private static final long serialVersionUID = 1L;

  private Long id;
  @JsonSerialize(using = DateTimeJsonSerializer.class)
  private Date created;
  @JsonSerialize(using = DateTimeJsonSerializer.class)
  private Date updated;

  private Double startdistance;// 起始

  private Double distance;// distance公里内收费money元

  private BigDecimal money;// 加收金额

  private Long chargeStartTimeId;

  public Double getDistance() {
    return distance;
  }

  public void setDistance(Double distance) {
    this.distance = distance;
  }

  public Double getStartdistance() {
    return startdistance;
  }

  public void setStartdistance(Double startdistance) {
    this.startdistance = startdistance;
  }

  public BigDecimal getMoney() {
    return money;
  }

  public void setMoney(BigDecimal money) {
    this.money = money;
  }

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public Date getCreated() {
    return created;
  }

  public void setCreated(Date created) {
    this.created = created;
  }

  public Date getUpdated() {
    return updated;
  }

  public void setUpdated(Date updated) {
    this.updated = updated;
  }

  public Long getChargeStartTimeId() {
    return chargeStartTimeId;
  }

  public void setChargeStartTimeId(Long chargeStartTimeId) {
    this.chargeStartTimeId = chargeStartTimeId;
  }
  /**
   * 如果distance为空或money为空返回true.
   */
  
  public boolean isEmpty() {

    if (null == distance || null == money) {
      return true;
    }
    return false;
  }
}
